package summary;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: 海琳琦
 * @Date: 2022/8/30 17:54
 */
public class Title525 {

    public int findMaxLength(int[] nums) {
        Map<int[], Integer> hash = new HashMap<>();
        int[] arr = new int[2];
        int n = nums.length;
        hash.put(new int[]{0, 0}, 0);
        for (int i = 1; i <= n; i++) {
            //计算前缀和0/1
            if (nums[i] == 1) {
                arr[1]++;
            }else{
                arr[0]++;
            }
        }
        return -1;
    }

}
